package org.android.SuperList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Catalogos extends Activity
{

    private static final int ACTIVITY_FORMASPAGOS=1;
    private static final int ACTIVITY_GASTOS=2;
    private static final int ACTIVITY_MONEDAS=3;

	
	@Override
	    public void onCreate(Bundle savedInstanceState) 
	    {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.catalogos);
	        Button btn_pagos = (Button) findViewById(R.id.btn_pagos);
	        Button btn_gastos =(Button) findViewById(R.id.btn_gastos);
	        Button btn_monedas = (Button) findViewById(R.id.btn_monedas);
	        btn_monedas.setOnClickListener(new View.OnClickListener() {
				
				
				public void onClick(View v) {
				 CargarMonedas();					
				}
			});
	        btn_pagos.setOnClickListener(new View.OnClickListener() {
				
				
				public void onClick(View v) {
					CargaFormasPago();
				}
			});
	        btn_gastos.setOnClickListener(new View.OnClickListener() {
				
				
				public void onClick(View v) {
					CargarGastos();
				}
			});
	        
	    }
	public void CargaFormasPago()
	{
		Intent i = new Intent(this,FormasPagos.class);
		startActivityForResult(i,ACTIVITY_FORMASPAGOS);
		
	}
	
	public void CargarGastos()
	{
		Intent i= new Intent(this,Gastos.class);
		startActivityForResult(i,ACTIVITY_GASTOS);
		
	}
	public void CargarMonedas()
	{
		Intent i = new Intent(this,Monedas.class);
		startActivityForResult(i,ACTIVITY_MONEDAS);
		
	}

}
